package com.ai.mall.service;

import com.ai.mall.entity.ProductsEntity;
import com.ai.mall.entity.UsersEntity;
import com.ai.mall.utils.PageUtils;
import com.ai.mall.utils.R;
import com.ai.mall.vo.res.SeckillProductVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商品表
 *
 * @author easue
 * @email sunlightcs@gmail.com
 * @date 2025-01-21 14:40:34
 */
public interface ProductsService extends IService<ProductsEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<ProductsEntity> searchByKeyword(String keyword);

    List<ProductsEntity> getSelfOperatedPhones();

    List<ProductsEntity> getEarphoneAccessories();

    List<ProductsEntity> getTablets();

    List<SeckillProductVO> getSeckillProducts();

    List<ProductsEntity> getRecommendedProducts(UsersEntity userInfo);
}

